function y = Diagonal_2(x)
%Diagonal2 Function
%x0=[1/1, 1/2, ....., 1/n]
%fmin=n/2
%Author:shi yangyang
n=length(x);
y=ones(1,n);
for i=1:1:n
    y(i)=exp(x(i))-x(i)/i;
end
y=sum(y);